package com.scjp_Java6.String;

import java.lang.reflect.Field;

public class Ex2_reflectionOrangeString {

	/**using reflection
	 * 
	 */
	private static void prepare() {
		// 
		try {
			Field value = String.class.getDeclaredField("value");
			value.setAccessible(true);
			value.set("Yellow", value.get("Orange"));
		} catch (Exception e) {
			throw new AssertionError(e);
		}
	}

	public static void main(String[] args) {
		
		prepare();
		
		System.out.println("Yellow");
		
		
	}
}
